const KoaRouter = require("@koa/router");
const {
     sign, test
} = require("../controller/login.controller");
const {
    verifyLogin,
    verifyAuth
} = require("../middleware/login.middleware");

const loginRouter = new KoaRouter({
    prefix: "/login"
});

loginRouter.post("/", verifyLogin, sign);
// 测试接口
loginRouter.get('/test', verifyAuth, test)

module.exports = loginRouter;